package cn.yerly.sakura.dao.model;

import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.ManyToOne;

/**
 * 用户收货地址
 * 
 * @author yerly
 *
 */
@Entity
public class UserAddress {
	@Id
	private Long id;
	@ManyToOne
	private User user;
	@ManyToOne
	private Location location;
	private String detail;
	private String zip;
	private String receiver;
	private String mobile;
	private String tel;
	private Boolean dft;
	private Boolean disabled;

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public User getUser() {
		return user;
	}

	public void setUser(User user) {
		this.user = user;
	}

	public Location getLocation() {
		return location;
	}

	public void setLocation(Location location) {
		this.location = location;
	}

	public String getDetail() {
		return detail;
	}

	public void setDetail(String detail) {
		this.detail = detail;
	}

	public String getZip() {
		return zip;
	}

	public void setZip(String zip) {
		this.zip = zip;
	}

	public String getReceiver() {
		return receiver;
	}

	public void setReceiver(String receiver) {
		this.receiver = receiver;
	}

	public String getMobile() {
		return mobile;
	}

	public void setMobile(String mobile) {
		this.mobile = mobile;
	}

	public String getTel() {
		return tel;
	}

	public void setTel(String tel) {
		this.tel = tel;
	}

	public Boolean getDft() {
		return dft;
	}

	public void setDft(Boolean dft) {
		this.dft = dft;
	}

	public Boolean getDisabled() {
		return disabled;
	}

	public void setDisabled(Boolean disabled) {
		this.disabled = disabled;
	}

	@Override
	public String toString() {
		return "UserAddress [id=" + id + ", user=" + user + ", location="
				+ location + ", detail=" + detail + ", zip=" + zip
				+ ", receiver=" + receiver + ", mobile=" + mobile + ", tel="
				+ tel + ", dft=" + dft + ", disabled=" + disabled + "]";
	}

}
